package com.moonshine.supermarket.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.moonshine.supermarket.entity.dao.Customer;
import com.moonshine.supermarket.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/system/customer")
public class CustomerController
{
    @Autowired
    private CustomerService customerService;

    @GetMapping("/list")
    public Customer list(Customer customer)
    {

        List<Customer> list = customerService.selectCustomerList(customer);
//        return getDataTable(list);
        return null;
    }

}
